package enumDemo2;

public class WeekDemo {
	
	public enum Week{
		MON,TUE,WED,THR,FRI,SAT,SUN;
	}
	public void doWhat(Week day){
		switch(day){
		case MON:
		case TUE:
		case WED:
		case THR:
		case FRI:
			System.out.println("工作日，请工作！");
			break;
		case SAT:
			System.out.println("周六，休息，可以看电影");
			break;
		case SUN:
			System.out.println("周日，可以睡个懒觉，但是下午要调整，明天上班");
			break;
		}
	}
	
	public static void main(String[] args) {
		WeekDemo week = new WeekDemo();
		week.doWhat(Week.THR);
		week.doWhat(Week.SAT);
		week.doWhat(Week.SUN);
	}

}
